package config

type ServerConfig struct {
	MySQLInfo MySQLInfo `mapstructure:"mysql" json:"mysql"`
	RedisInfo RedisInfo `mapstructure:"redis" json:"redis"`
}
type RedisInfo struct {
	Host string `mapstructure:"host" json:"host"`
	Port int    `mapstructure:"port" json:"port"`
}
type MySQLInfo struct {
	DBName string `mapstructure:"dbname" json:"dbname"`
	Host   string `mapstructure:"host" json:"host"`
	Port   int    `mapstructure:"port" json:"port"`
	User   string `mapstructure:"user" json:"user"`
	Pwd    int    `mapstructure:"pwd" json:"pwd"`
}
